Skip to content

Fixed compile error to enable removal of flashing blue startup sequence (BLE)#10755

Open
daniel-alsen wants to merge 2 commits intoadafruit:10.0.xfrom
daniel-alsen:ble-compile-fix
Open

Fixed compile error to enable removal of flashing blue startup sequence (BLE)#10755
daniel-alsen wants to merge 2 commits intoadafruit:10.0.xfrom
daniel-alsen:ble-compile-fix

Conversation

@daniel-alsen
Copy link

@daniel-alsen daniel-alsen commented Dec 15, 2025

This fix makes it possible to disable BLE file and serial services, to remove the flashing blue light start-up sequence. That speeds up the overall start up procedure significantly for users who don't use these services.

It works well in combination with CIRCUITPY_SKIP_SAFE_MODE_WAIT = 0 to remove both the flashing yellow and flashing blue start up sequences.

I tested the fix with the build flags both enabled and disabled.

mpconfigboard.mk:

CIRCUITPY_BLE_FILE_SERVICE = 0
CIRCUITPY_SERIAL_BLE = 0

Fixed issues:

  • Conditional compilation of prototype in header file without adjusting source file
  • Variable name mismatch between header and source file
PacketBuffer.c:162:6: error: no previous prototype for '_common_hal_bleio_packet_buffer_construct' [-Werror=missing-prototypes]

…TPY_BLE_FILE_SERVICE + variable name mismatch
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I just remove the guard instead (and kept the fixed prototype arg name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Circuitpython doesn't compile when disabling BLE (including working quick fix)

2 participants